package com.cdks.wuxiu.api.service.mysql;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdks.wuxiu.entity.mysql.BookConsultInfo;


/**
 * 预约咨询 服务类
 */
public interface BookConsultInfoService extends IService<BookConsultInfo> {
    int createSheet(BookConsultInfo order);
    int confirmSheet(BookConsultInfo order);
    int signInSheet(BookConsultInfo order, int lastStatus);
    int changeSheet(BookConsultInfo order);
    int finishSheet(BookConsultInfo order);
    int paySheet(BookConsultInfo order);

    BookConsultInfo getSheetByOrderNo(String orderNo);
    BookConsultInfo getBusySheetByUser(long userId, long time);
    BookConsultInfo getBusySheetAnyUser(long userId, long recverId, long time);
    BookConsultInfo getBusySheetBothUser(long payerId, long earnerId, long time);
    BookConsultInfo getPlanSheetByUser(long userId, long startTime, long expireTime);
    BookConsultInfo getPlanSheetAnyUser(long userId, long recverId, long startTime, long expireTime);
    
    List<BookConsultInfo> getRecord(long userId, int page, int start, int stop);
}
